<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<script type="text/javascript" src="../js/jquery/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../js/application/application.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<% 
	String title = (String)request.getSession().getAttribute("title");
	String path = request.getContextPath();		
%>
<title>桉树IBC</title>
<script type="text/javascript">

	function getScreenToken(){
		var url = "http://www.thethinking.cc/pvgi/home/mainpage?token=";
		$.ajax({
	        url: '/euc/system/screen/token',
	        data:'',
	        beforeSend: function(request) {
	        	var accessToken = localStorage.getItem('accessToken');
	            request.setRequestHeader("accessToken",accessToken );
	        },
	        dataType: 'JSON',
	        async: true,
	        contentType:'application/json;charset=utf-8',
	        type: 'POST',
	        success: function (result, textStatus, response) {
	        	console.log(JSON.stringify(result));
	        	if(result.status == '0'){
	        		$('#iframeID').attr('src', url+result.data);
	        	}	        	
	        },
	        error: function () {
	        	console.log(e.message);
	        }  
	    });
	}	
	getScreenToken();
	
</script>  
	</head>	 
	<body>   
		<iframe id="iframeID" frameborder="no" border="0" scrolling="no" allowtransparency="yes" marginwidth="0" marginheight="0" style="width:100%;height:99%;margin:-5px -5px -15px -5px;" src=""></iframe>
	</body>
</html>  